﻿<%template _header%>
<%namespace YouHP.BLL%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>

<div class="layout-cols2">
	<div class="col1">

 <%csharp%>TempUrl = ModuleCtrl.Header4("SymptomList","搜索症状",true,false); <%/csharp%>
{TempUrl}
    <div id="search-links" class="searchbox_0">
                      <img src="/support/Alpha/images/icon_search_results.gif" />
                      <%csharp%>string tmpStr = this.GetCondStr(this.cond) ; if(tmpStr.Length > 0) { <%/csharp%>
	                  <label>您的搜索条件：</label>&nbsp;{tmpStr}
	                  <%csharp%>} else {<%/csharp%>
	                  所有症状
	                  <%csharp%>} <%/csharp%>
	                  <%csharp%>TempUrl = "/SymptomAll.aspx" ;<%/csharp%>
	                  &nbsp;&nbsp;&nbsp;<a href="{this.GetUrl(TempUrl)}">修改搜索条件</a>					  					  
                </div>
                <%csharp%>TempUrl = ModuleCtrl.Footer("SymptomList"); <%/csharp%>
                {TempUrl}

                <%csharp%>TempUrl = ModuleCtrl.Header4("SymptomList","症状列表",true,false); <%/csharp%>
                {TempUrl}

				<%csharp%> if(SymptomDataList.Count == 0){ <%/csharp%>

				 <div class="content">
				<p><b>找不到相应的症状!!</b></p>
				</div>

				<%csharp%> } else { <%/csharp%>
				<table border="0" cellpadding="0" cellspacing="0" class="plist">
	                   <tr align="center" style="background-color:#F2FACA; height:30px;"> 
	                   <tr align="center" style="background-color:#F2FACA; height:30px;"> 
                            <td width="15%" height="26"><b class="tdtitle">名称</b></td>
                            <td width="35%"><b class="tdtitle">简介</b></td>
                            <td width="10%"><b class="tdtitle">当前总人数</b></td>
                            <td width="15%"><b class="tdtitle">典型病友</b></td>
                        </tr>

                        </tr>
				<%csharp%>
				string str="tr_bgcolor_0";
				foreach(SymptomInfo item in SymptomDataList) { <%/csharp%>
					<tbody><tr height="60" class="{str}">
					 <%csharp%>TempUrl = "/Symptom.aspx?id=" + item.Id; <%/csharp%>
						<td width="105" align="center"><a href="{this.GetUrl(TempUrl)}">{item.Name}</a></td>
						<%csharp%>
						string sb=item.Intro; 
						if(sb.Length>50){
						sb=sb.Substring(0,Math.Min(50,sb.Length))+"……";}
						<%/csharp%>
						<td style="padding:0px 10px 0px 10px;"><span style="text-overflow:ellipsis;">{sb}</span></td>
						
						<%csharp%> 
						    TempUrl="/PatientList.aspx?symid="+item.Id ;
						    if(item.PatientCount > 0)
						    {
						<%/csharp%>						
						<td align="center"><a href="{this.GetUrl(TempUrl)}"><font color="blue">{item.PatientCount}</a></font></td> 
						<%csharp%> 
                            }
                            else{
						<%/csharp%>	
                        <td align="center">{item.PatientCount}</td> 
						<%csharp%> 
                            }
    					<%/csharp%>							
						
						<%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.PatientId; <%/csharp%>
						<td align="center">
						    <%csharp%>
						    if(item.PatientId > 0)
						    {
						        TempUrl = "/Profile/Index.aspx?uid=" + item.PatientId; 
						    <%/csharp%>
							    <a href="{this.GetUrl(TempUrl)}" class="user_img">
							        <img src="{UserBLL.Instance.GetUserInfo(item.PatientId).Avatar}" height="48" width="48"></img><br />
							        {item.PatientName}
							    </a>
							<%csharp%>	}else {	<%/csharp%>
							    暂无
							<%csharp%> 
							} 
							<%/csharp%>
						</td>
						
					</tr></tbody>
					<%csharp%>
					if(str=="tr_bgcolor_0") str="tr_bgcolor_1";
					else str="tr_bgcolor_0";
					}<%/csharp%>
				</table>				
				<%csharp%> } <%/csharp%>
<%csharp%>TempUrl = ModuleCtrl.Footer("SymptomList"); <%/csharp%>
{TempUrl}	
		
		
		<div class="box">
			<div class="content">
				<div class="pages">
					{SymptomPagingString}
				</div>
			</div>
		</div>
		
	</div>
	
	<div class="col2">

    <%template _TopicHottest%>
    
    <%template _TopicLatest%>
		
	</div>
	
</div>

<%template _footer%>		
